<%= error_messages_for 'page' %>
<!--[form:page]-->
<%
 red = @page.public ? '': 'red'
%>
<div id="droper" class="droper" style="display:none;"><%=_ "Drag and drop images here."%></div>
<%= text_field 'page', 'header', :class => "pageheader"+red, :style => "background:url('/images/header-red-#{@app[:lang]}.png') no-repeat left bottom;", :title => (_ "Title... press Tab to enter content.")%><br/>
<%= text_area 'page', 'content', :class => "page", :style => "color:black;"%><br/>

<div style="text-align:center"><label for="page_public"><%=_ 'publicpage'%></label><input type="checkbox" id="page_public" name="page[public]" <%="checked" if @page.public%>/></div>
<!--[eoform:page]-->

<%= drop_receiving_element "droper", 
      :update => "page_content", :url => { :action => "dropvision" },
      :accept => "drops", :hoverclass => "droperhover"
 %>
